package com.ray.controller;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ray.service.MaterialPositionService;
import com.ray.util.RequestUtil;
import com.ray.util.ResponseUtil;

@Controller
@RequestMapping("/materialPosition")
public class MaterialPositionController {
	
	@Autowired
	MaterialPositionService materialPositionService;
	
	@RequestMapping("/updateMaterialPositionList")
	@ResponseBody
	public Map<String,Object> updateMaterialPositionList(HttpServletRequest request){
		Map<String,Object> map = RequestUtil.getRequestAllParam(request);
		materialPositionService.updateMaterialPositionList(map);
		return ResponseUtil.ResponseResult("修改成功");
	}
}
